#!/usr/bin/env python

from datetime import date
import calendar

for year in range(2007, 1, -1):
    str_year = str(year)
    if len(str_year) < 2 or str_year[0] != '1' or str_year[-1] != '6':
        continue
    if not calendar.isleap(year):
        continue
    d = date(year, 1, 26)
    if d.isoweekday() != 1:
        continue
    print d

